﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zj.OpenAuth.Domain.Core;

namespace Zj.OpenAuth.DTO.Common
{
    /// <summary>
    /// menu data transfer object
    /// </summary>
    public class MenuDTO
    {
        public int Id { get; set; }


        public int? ParentId { get; set; }


        [Required]
        [StringLength(30, MinimumLength = 3)]
        public string Text { get; set; }



        [StringLength(36)]
        public string Code { get; set; }



        public LevelEnum Level { get; set; }


        [Required]
        [StringLength(30, MinimumLength = 3)]
        public string Url { get; set; }



        public MenuTypeEnum MenuType { get; set; }



        [StringLength(20)]
        public string Icon { get; set; }



        [StringLength(1000)]
        public string Description { get; set; }



        public StatusEnum Status { get; set; }



        public int Sort { get; set; }
    }
}
